package com.haikesi.api.organization.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @ClassName OrganizationVO
 * @Author HandsomeBugs
 * @Date 2019/4/30 9:28
 * @Version 1.0
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class OrganizationTreeVO implements Serializable {
    private static final long serialVersionUID = -1L;

    @ApiModelProperty(value = "Id")
    private String id;

    @ApiModelProperty(value = "组织机构名称")
    private String organizationName;

    @ApiModelProperty(value = "父级组织机构ID")
    private String parentId;

    @ApiModelProperty(value = "机构描述")
    private String organizationDescription;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    @ApiModelProperty(value = "孩子们")
    private List<OrganizationTreeVO> childrens;
}